
public class StringExample {
	public static void main(String[] args) {
		String str = new String ("vijay");
		str = str+"nathane";
		str = str.concat("Sabari");
		System.out.println("string addition output is "+str);
		
		
		StringBuilder strbuilder = new StringBuilder();
		strbuilder.append("vijaiya");
		strbuilder.append("nathane");
		String name = strbuilder.toString();
		System.out.println(strbuilder);
		
		StringBuffer strbuffer = new StringBuffer();
		strbuffer.append("vijaiya");
		strbuffer.append("nathane");
		String name1 = strbuffer.toString();
		System.out.println(name1);
		
		Integer i = new Integer(55555);
		System.out.println(i.floatValue());
		
		if(name==name1){ 
			System.out.println("equal");
		} else {
			System.out.println("not equal");
		}
		
		if(name.equals(name1)){ 
			System.out.println("equal");
		} else {
			System.out.println("not equal");
		}
	}
}
